package com.kangye.enterprise.frontdesk.controller;

import com.kangye.enterprise.frontdesk.entity.Abst;
import com.kangye.enterprise.frontdesk.entity.Refer;
import com.kangye.enterprise.frontdesk.service.AbstService;
import com.kangye.enterprise.frontdesk.util.ViewJsonObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: enterprise
 * @description:
 * @author: 索腾龙
 * @create: 2021-05-29 13:48
 **/
@RestController
@CrossOrigin
@RequestMapping("/abst")
public class AbstController {
    @Autowired
    private AbstService abstService;

    //查询全部相关专题,相关通知,相关政策
    @RequestMapping("/selAbst")
    public ViewJsonObject<Abst> selAbst(Integer abstAbroleId){
        return abstService.selAbst(abstAbroleId);
    }
    //查看相关专题的详情1 详细信息(索腾龙)
    @RequestMapping("/selAbstById")
    ViewJsonObject<Abst> selAbstById(Integer abstId){
        return abstService.selAbstById(abstId);
    };
    //查看相关专题的详情2 咨询方式(索腾龙)
    @RequestMapping("/selReferById")
    ViewJsonObject<Refer> selReferById(Integer referAbstId){
        return abstService.selReferById(referAbstId);
    };
}